//
//  HotCarDetailView.m
//  CarWorld
//
//  Created by yuyu on 15/3/30.
//  Copyright (c) 2015年 CarWorldTeam. All rights reserved.
//

#import "HotCarDetailView.h"
#import "HotSectionView.h"
@implementation HotCarDetailView

- (void)dealloc
{
    [_hotSectionView release];
    [_rootView release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self=[super initWithFrame:frame]) {
        CGRect rect = [UIScreen mainScreen].bounds;
        CGFloat with = rect.size.width;
        CGFloat height = rect.size.height;
        _hotSectionView = [[HotSectionView alloc] initWithFrame:CGRectMake(0, 70, with, 30)];
        [self addSubview:_hotSectionView];
        
        _rootView = [[UIView alloc] initWithFrame:CGRectMake(0, 100, with, height-100)];
        [self addSubview:_rootView];
    }
    return self;
}




/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
